<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>车间流水线运行监控系统</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="styles.css"></link>
</head>
<body>
    <div class="container">
        <div class="production-section">
            <header>
                <h1>🏭 车间流水线运行监控系统</h1>
                <p class="subtitle">实时监控产品在内外圈工序中的生产状态</p>
            </header>
            
            <div class="production-area" style="margin-top: 50px;">
                <div class="waiting-area" style="display: none;">待进入</div>
                
                <div class="outer-circle" id="outerCircle">
                    <!-- 外圈工序将通过JavaScript动态生成 -->
                </div>
                
                <div class="inner-circle" id="innerCircle">
                    <!-- 内圈工序将通过JavaScript动态生成 -->
                </div>
                
                <div class="transfer-area">已完成
                    <div class="completed-orders"></div>
                </div>
            </div>
            
            <footer style="margin-top: 20px;">
                <p>车间流水线模拟系统 &copy; 2025 | 实时监控生产进度</p>
            </footer>
        </div>
        
        <div class="control-section">
            <div class="control-panel">
                <h2 class="panel-title">🔍 订单状态查询</h2>
                <div class="input-group">
                    <input type="text" id="orderInput" placeholder="请输入订单号">
                    <button id="queryBtn">查询</button>
                </div>

                <div class="status-display">
                    <div id="orderStatus">输入订单号后查询工序状态信息</div>
                </div>

                <div class="simulation-controls">
                    <button class="control-btn" id="addOrderBtn">添加模拟订单</button>
                    <div class="simulation-buttons">
                        <button class="control-btn" id="startSimulationBtn">开始模拟</button>
                        <button class="control-btn" id="stopSimulationBtn">停止模拟</button>
                    </div>
                </div>

                <!-- 确保示例部分正确显示 -->
                <div class="legend">
                    <div class="legend-item">
                        <div class="legend-color outer-legend"></div>
                        <span>外圈工序</span>
                    </div>
                    <div class="legend-item">
                        <div class="legend-color inner-legend"></div>
                        <span>内圈工序</span>
                    </div>
                    <div class="legend-item">
                        <div class="legend-color active-legend"></div>
                        <span>当前工序</span>
                    </div>
                    <div class="legend-item">
                        <div class="legend-color waiting-legend"></div>
                        <span>等待工序</span>
                    </div>
                    <div class="legend-item">
                        <div class="legend-color painting-legend"></div>
                        <span>喷涂工序</span>
                    </div>
                    <div class="legend-item">
                        <div class="legend-color drying-legend"></div>
                        <span>烘干工序</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>